package com.chenwang.measure.model.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * @松 on 2019/7/31 09:50
 * 经纬度 和偏移量
 */
public class LonLatBean implements Parcelable {
    private double lat;  //纬度
    private double lon; //经度
    private double latOffset;//纬度差
    private double  horizontal;//水平精度
    public LonLatBean() {

    }
    protected LonLatBean(Parcel in) {
        lat = in.readDouble();
        lon = in.readDouble();
        latOffset = in.readDouble();
        horizontal = in.readDouble();
    }

    public static final Creator<LonLatBean> CREATOR = new Creator<LonLatBean>() {
        @Override
        public LonLatBean createFromParcel(Parcel in) {
            return new LonLatBean(in);
        }

        @Override
        public LonLatBean[] newArray(int size) {
            return new LonLatBean[size];
        }
    };

    public double getLat() {
        return lat;
    }

    public void setLat(double lat) {
        this.lat = lat;
    }

    public double getLon() {
        return lon;
    }

    public void setLon(double lon) {
        this.lon = lon;
    }

    public double getLatOffset() {
        return latOffset;
    }

    public void setLatOffset(double latOffset) {
        this.latOffset = latOffset;
    }



    public double getHorizontal() {
        return horizontal;
    }

    public void setHorizontal(double horizontal) {
        this.horizontal = horizontal;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel parcel, int i) {
        parcel.writeDouble(lat);
        parcel.writeDouble(lon);
        parcel.writeDouble(latOffset);
        parcel.writeDouble(horizontal);
    }
}
